projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4d9ea1
)
GtkColorChooserWidget: Set accessible names
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 5 Jan 2014 04:30:28 +0000
(23:30 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 5 Jan 2014 04:30:28 +0000
(23:30 -0500)
As pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=721053
we should set the accessible name on the color swatch widgets,
not the descriptions.
gtk/gtkcolorchooserwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcolorchooserwidget.c
b/gtk/gtkcolorchooserwidget.c
index 71bdc89dc06245e3a2492ff4bf55c272f7636f2b..9665490e15c9c306466c63a0dd3c6cdcb41dce37 100644
(file)
--- a/
gtk/gtkcolorchooserwidget.c
+++ b/
gtk/gtkcolorchooserwidget.c
@@
-354,8
+354,8
@@
add_palette (GtkColorChooserWidget *cc,
atk_obj = gtk_widget_get_accessible (p);
if (names)
{
- atk_object_set_
description
(atk_obj,
-
g_dpgettext2 (GETTEXT_PACKAGE, "Color name", names[i]));
+ atk_object_set_
name
(atk_obj,
+ g_dpgettext2 (GETTEXT_PACKAGE, "Color name", names[i]));
}
else
{
@@
-363,7
+363,7
@@
add_palette (GtkColorChooserWidget *cc,
name = accessible_color_name (&colors[i]);
text = g_strdup_printf (_("Color: %s"), name);
- atk_object_set_
description
(atk_obj, text);
+ atk_object_set_
name
(atk_obj, text);
g_free (text);
g_free (name);
}